# 服务端
import zerorpc as rpc

class hashaki:
    def GG(self,x):
        return x
    
a=rpc.Server(hashaki())
a.bind("tcp://0.0.0.0:6666")
a.run()


'''
# 客户端
import zerorpc as rpc
from time import sleep

def client():
    c=rpc.Client()
    c.connect('tcp://127.0.0.1:6666')
    for i in range(10):
        print(c.GG(i))
        sleep(1)

client()
'''